import flowablerequest from '@/utils/request'

const wf_CompreQueryApi = {
  AcceptCompreQuery: 'flow/AcceptCompreQuery',
  AcceptSubCompreQuery: 'flow/AcceptSubCompreQuery',
  SuperviseCompreQuery: 'flow/SuperviseCompreQuery',
  CommonAssignQuery: '/flow/CommonAssignQuery'
}

/**
 * 行政复议综合查询-主流程查询
 * @return
 */
export function AcceptCompreQuery (pageinfo) {
  return flowablerequest({
    url: wf_CompreQueryApi.AcceptCompreQuery,
    method: 'post',
    data: pageinfo
  })
}

/**
 * 行政复议综合查询-子流程查询
 * @return
 */
export function AcceptSubCompreQuery (pageinfo) {
  return flowablerequest({
    url: wf_CompreQueryApi.AcceptSubCompreQuery,
    method: 'post',
    data: pageinfo
  })
}

/**
 * 复议监督综合查询
 * @param {} pageinfo
 * @returns
 */
export function SuperviseCompreQuery (pageinfo) {
  return flowablerequest({
    url: wf_CompreQueryApi.SuperviseCompreQuery,
    method: 'post',
    data: pageinfo
  })
}

/**
 * 复议监督查询待分派案件
 * @param {} pageinfo
 * @returns
 */
export function CommonAssignQuery (pageinfo) {
  return flowablerequest({
    url: wf_CompreQueryApi.CommonAssignQuery,
    method: 'post',
    data: pageinfo
  })
}
